use axum::{
    response::{IntoResponse, Response},
    Json,
};
use hyper::StatusCode;

pub async fn root_handler() -> Response {
    let body = Json(serde_json::json!({"msg": "Hello World!"}));
    (StatusCode::OK, body).into_response()
}

pub async fn _404_handler() -> Response {
    let body = Json(serde_json::json!({"error": "404 not found!"}));
    (StatusCode::NOT_FOUND, body).into_response()
}
